package com.huluobo.jetpackdemo.hilt

import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

/**
 *  Created by LC on 2024/11/13.
 */
@HiltViewModel
class LoginViewModel @Inject constructor(val apiService: ApiService) : ViewModel() {
    fun login(username: String, password: String): UserBean {
        return apiService.login(username, password)
    }
}